Skip to content

feat: multi sync example test token token standard api implementation#1782

Open
Viktor-Kalashnykov-da wants to merge 41 commits into
wiktor/multisync-examplefrom
wiktor/multisync-example-token-standard-offledger-api
Open

feat: multi sync example test token token standard api implementation#1782
Viktor-Kalashnykov-da wants to merge 41 commits into
wiktor/multisync-examplefrom
wiktor/multisync-example-token-standard-offledger-api

Conversation

@Viktor-Kalashnykov-da
Copy link
Copy Markdown

Added implementation of Asset Registry for Test Token (available inside docs/wallet-integration-guide/examples/scripts/15-multi-sync/_registry folder). The registry is started and stopped inside 15-multi-sync example script.
The following APIs are implemented:

  1. Metadata API - endpoints '/registry/metadata/v1/info', 'registry/metadata/v1/instruments' and '/registry/metadata/v1/instruments/:instrumentId' (based on token-metadata-v1.yaml)
  2. Transfer Instruction API - endpoints '/registry/transfer-instruction/v1/transfer-factory', '/registry/transfer-instruction/v1/:transferInstructionId/choice-contexts/accept', '/registry/transfer-instruction/v1/:transferInstructionId/choice-contexts/reject' and '/registry/transfer-instruction/v1/:transferInstructionId/choice-contexts/withdraw' (based on transfer-instruction-v1.yaml)
  3. Allocation Instruction API - endpoint '/registry/allocation-instruction/v1/allocation-factory' (based on allocation-instruction-v1.yaml)
  4. Allocation API - endpoints '/registry/allocations/v1/:allocationId/choice-contexts/execute-transfer', /registry/allocations/v1/:allocationId/choice-contexts/withdraw' and '/registry/allocations/v1/:allocationId/choice-contexts/cancel' (based on allocation-v1.yaml)
    The technical stack:
    NodeJS (built-in Wallet Gateway)
    Typescript (built-in Wallet Gateway)

HTTP API based on NodeJS is started inside example 15, the routes and REST API definitions are generated based on YAML files mentioned in points (1-4)

Example 15 uses newly created Test Toke registry for operations with TestToken asset

… from docs/wallet-integration-guide/examples/package.json

Signed-off-by: vkalashnykov <[email protected]>
…nRules Contract to usage of 2 contracts of the same type but on different synchronizers

Signed-off-by: vkalashnykov <[email protected]>
…edBefore and validUntil fields

Signed-off-by: vkalashnykov <[email protected]>
…mespace/state/client (and utility type as well)

Signed-off-by: vkalashnykov <[email protected]>
Comment thread docs/wallet-integration-guide/examples/scripts/15-multi-sync/_trade_ops.ts Dismissed
Comment thread docs/wallet-integration-guide/examples/scripts/15-multi-sync/_trade_ops.ts Dismissed
@Viktor-Kalashnykov-da Viktor-Kalashnykov-da changed the base branch from main to wiktor/multisync-example May 15, 2026 17:59
@Viktor-Kalashnykov-da Viktor-Kalashnykov-da marked this pull request as ready for review May 15, 2026 19:35
@Viktor-Kalashnykov-da Viktor-Kalashnykov-da requested review from a team as code owners May 15, 2026 19:35
@jarekr-da jarekr-da force-pushed the wiktor/multisync-example branch from 563df2d to 98dfc85 Compare May 20, 2026 17:18
…tation purpose), because the mentioned DAR is not part of Splice release yet

Signed-off-by: vkalashnykov <[email protected]>
…-token-standard-offledger-api

Signed-off-by: Viktor-Kalashnykov-da <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants